package com.jason.reflect;

/**
 * @Author: Jason
 * @Date: 16/7/29
 * @Time: 00:29
 */
public class MyClassLoaderTest {

    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InstantiationException {
        MyClassLoader loader = new MyClassLoader();
        Class dogCls = loader.findClass("ddd");// 返回的是字节码
        Object dog = dogCls.newInstance();

        System.err.println(">>:dog " + dog);
    }
}
